package com.frank.oj.service.admin.contest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.frank.model.entity.contest.Contest;
import com.frank.oj.common.result.CommonResult;
import com.frank.oj.model.vo.AdminContestVO;

/**
 * @author frank
 * @Date 2024/4/7
 */
public interface AdminContestService {
    CommonResult<IPage<Contest>> getContestList(Integer limit, Integer currentPage, String keyword);

    CommonResult<Void> changeContestVisible(Long cid, String uid, Boolean visible);

    CommonResult<AdminContestVO> getContest(Long cid);

    CommonResult<Void> addContest(AdminContestVO adminContestVo);

    CommonResult<Void> deleteContest(Long cid);

    CommonResult<Void> updateContest(AdminContestVO adminContestVo);

    CommonResult<Void> cloneContest(Long cid);
}
